package com.wolfeyes.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.List;

/**
 * @see Talk is cheap, Show me the code. -- Linus Torvalds
 * @title 演员信息-实体类
 * @author yanyljava
 * @email yanyljava@qq.com
 * @create 2022-01-13 14:54
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class SysActor implements Serializable {

	/**
	 * @description 串行版本标识
	 */
	private static final long serialVersionUID = 6834448709656701314L;

	//演员id
	private Long actorId;

	//演员中文名
	@NotBlank(message = "演员中文名不能为空")
	private String actorNameCn;

	//演员英文名
	@NotBlank(message = "演员英文名不能为空")
	private String actorNameEn;
	
	//演员图片
	//@NotBlank(message = "演员图片不能为空")
	private String actorPhoto;

	//演员身高
	@Range(min = 100, max = 300, message = "身高需要在1m到3m之间")
	private Double actorHeight;

	//演员年龄
	@Min(value = 0, message = "年龄不得低于0")
	@Max(value = 100, message = "年龄不得高于100")
	private Integer actorAge;

	//演员性别
	@NotNull(message = "性别不能为空")
	private Boolean actorGender;

	//演员毕业院校
	//@NotBlank(message = "毕业院校不得为空")
	private String actorSchool;

	//演员民族
	private String actorNation;

	//演员血型
	private String actorBloodType;

	//演员星座
	private String actorConstellation;

	//演员国籍
	private String actorNationality;

	//演员详细信息
	private String actorInformation;

	private List<SysMovie> movieList;

	private List<SysActorRole> actorRoleList;

}
